/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.inventario.modelo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */

@Embeddable
public class RubroPK implements Serializable{

    @Column(name = "STTTPV_TIPPRO", nullable = false, length = 6)
    private String tippro;
    @Column(name = "STTTPV_PREFIX", nullable = false, length = 6)
    private String prefix;
    @Column(name = "STTTPV_NRORUB", nullable = false)
    private int nrorub;
    @Column(name = "STTTPV_VALRUB", nullable = false, length = 30)
    private String valrub;

    public RubroPK() {
        
    }

    public RubroPK(String tippro, String prefix, int nrorub, String valrub) {
        this.tippro = tippro;
        this.prefix = prefix;
        this.nrorub = nrorub;
        this.valrub = valrub;
    }    

    public int getNrorub() {
        return nrorub;
    }

    public void setNrorub(int nrorub) {
        this.nrorub = nrorub;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getTippro() {
        return tippro;
    }

    public void setTippro(String tippro) {
        this.tippro = tippro;
    }

    public String getValrub() {
        return valrub;
    }

    public void setValrub(String valrub) {
        this.valrub = valrub;
    }

    @Override
    public String toString() {
        return "tippro=" + tippro + ",prefix=" + prefix + ",nrorub=" + nrorub + ",valrub=" + valrub;
    }
    
}
